import turtle

# 设置画布
screen = turtle.Screen()
screen.bgcolor("black")
screen.setup(800, 600)

# 创建乌龟
heart = turtle.Turtle()
heart.speed(5)
heart.color("red")
heart.pensize(3)

# 绘制爱心
def draw_heart():
    heart.begin_fill()
    heart.left(50)
    heart.forward(133)
    heart.circle(50, 200)
    heart.right(140)
    heart.circle(50, 200)
    heart.forward(133)
    heart.end_fill()

draw_heart()

# 添加文字
heart.penup()
heart.goto(0, -50)
heart.color("white")
heart.write("我爱你", align="center", font=("Arial", 24, "bold"))

# 隐藏乌龟
heart.hideturtle()

# 保持窗口打开
turtle.done()